<div id="mc">
   <h2>Send Message</h2>
   <h5>Here you can send a message to the job poster. You can also attach a document or resume along with your message.</h5>
</div>
<div id="rc">
	<div class="blockBlue" >
		<div class="head"></div>
		<div class="content">
			<div id="loginboxx">
				<div class="title">Welcome, {$uname}!</div>
				<p><table cellpadding="2" cellspacing="0" border="0"><tr><td><a href="settings.php">My Account</a></td><td><a href="#" onclick="return ajax_out()" >Sign Out</a></td><td><div id="loadp"></div></td></tr></table></p>
				</p>
			</div>
		</div>
		<div class="bottom"></div>
	</div>
</div>
<div id="rightside">
	  <table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableGrey">
	      <tr style="background-color:#fff">
	       <td colspan="7"><h5>Job Details</h5></td>
	      </tr>
              <tr>
		<th>ER Job Req#</th>
		<th>Job Poster</th>
		<th>Create Date</th>
		<th>Last Updated</th>
		<th>Valid By</th>
		<th>Job Title</th>
		<th>Job Status</th>
              </tr>
              <tr class="hotline {cycle values="odd,even"}">
					<td><a href="jobaction.php?action=view&view=op&id={$jobarr.jo_id}" target="_blank">{$jobarr.jo_id}</a></td>
					<td>{$jobarr.jo_copname}</td>
					<td>{$jobarr.jo_regtime}</td>
					<td>{$jobarr.jo_updtime}</td>
					<td>{$jobarr.jo_vdate}</td>
					<td>{$jobarr.jo_title}</td>
					<td>{$jobarr.jo_status}</td>
              </tr>
          </table>
</div>
<div id="mc" style="width:784px">
	{if $view == 1 }
		<table width="100%" border="0" cellpadding="0" cellspacing="5"  class="inputcontrol">
			<tr>
				<td>First Name:{$s.rc_fname}</td>
				<td>Last Name: {$s.rc_lname}</td>
				<td>Contact Email: {$s.rc_email}</td>
				<td>Contact Phone: {$s.rc_phone}</td>
			</tr>
			<tr>
				<td>City: {$s.rc_city}</td>
				<td>State: {$stateView}</td>
				<td colspan="2">Country:{$countryView}</td>
			</tr>
			<tr>
				<td>Years of Relevant Work Experience:{$rc_yearexpView}</td>
				<td>Years of People Management  Experience : {$rc_mgmtView}</td>
				<td></td>
				<td></td>
			</tr>

			<tr>
				<td>Highest Degree: {$degreeView}</td>
				<td>School Attended : {$s.rc_schoolattend}</td>
				<td colspan="2">Current Job Title: {$s.rc_title}</td>
			</tr>
			
			<tr>
				<td>Current Base Salary: ${$s.rc_currentpay}</td>
				<td>Desired  Base Salary : ${$s.rc_desiredpay}</td>
				<td colspan="2"></td>
			</tr>
			
			<tr>
				<td colspan="4">Type or Paste Resume Details Here:
				<div>{$s.rc_detail}</div>
				</td>
			</tr>
			<tr>
				<td colspan="4">
				{if $s.rc_upload}
				Resume Document:<a href="uploadfiles/resumes/{$s.rc_upload}">View</a>{/if}
				</td>
			</tr>
			<tr>
				<td colspan="4"><input type="button" value="Back" onclick="history.go(-1)" class="button-secondary"></td>
			</tr>
		</table>
	
	{else}
	<h2>Your Information  (all fields are required)</h2>
	<div style="color:red">{$err}</div>

        <form action=""  method="POST" name="resumesubmit" enctype="multipart/form-data" >
		<table width="100%" border="0" cellpadding="0" cellspacing="5"  class="inputcontrol">
			<tr>
				<td>First Name:<br><input  type="text" size="28" name="rc_fname"  value="{$s.rc_fname}" /></td>
				<td>Last Name: <br><input  type="text" size="28" name="rc_lname"  value="{$s.rc_lname}" /></td>
				<td>Contact Email: <br><input  type="text" size="28" name="rc_email"  value="{$s.rc_email}" /></td>
				<td>Contact Phone: <br><input  type="text" size="28" name="rc_phone"  value="{$s.rc_phone}" /></td>
			</tr>
			<tr>
				<td colspan="4"><b>Subject:</b> <br /><input type="text" id="rc_subject" name="rc_subject" value="{$s.rc_subject}" size="110" />
				</td>
			</tr>
			<tr>
				<td colspan="4">
				<div><input type="hidden" id="rc_detail" name="rc_detail" value="" style="display:none" /><input type="hidden" id="rc_detail___Config" value="" style="display:none" /><iframe id="rc_detail___Frame" src="FCKeditor/editor/fckeditor.html?InstanceName=rc_detail&amp;Toolbar=Basic" width="750" height="300" frameborder="0" scrolling="no"></iframe></div>
				</td>
			</tr>
			<tr>
				<td colspan="4">
				Attach document (optional):
				{if $s.rc_upload}
				<a href="uploadfiles/resumes/{$s.rc_upload}">View</a>{/if}
				<input type="file" name="uploadfile" >(doc,docx,txt,pdf)
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center" style="padding-top:10px">
					<input name="action" value="resume_postcontact" type="hidden" />
					<input class="bginput button-secondary" type="submit" name="submit" value=" Submit " onclick='document.resumesubmit.action="resumecontactemployer.php?jid={$jobarr.jo_id}"' />
					<input class="bginput button-secondary" type="submit" name="preview" value=" Preview " onclick='document.resumesubmit.target="_blank";document.resumesubmit.action="previewcontact.php"' />
					<input class="bginput button-secondary" type="button" name="cancel" value=" Cancel " onclick='javascript:window.location.href="jobaction.php?action=view&view=op&id={$jid}";' />
					<input name="jid" value="{$jid}" type="hidden" />
					<input name="editid" value="{$editid}" type="hidden" />
				</td>
			</tr>
		</table>
	</form>
	{/if}
</div>
<div class="clear"></div>
<br />